package com.um.swing.ui;

import com.um.swing.common.inc.Constant;

import javax.swing.*;
import javax.swing.plaf.basic.BasicPanelUI;
import java.awt.*;

/**
 * IButton UI for PView
 */
public class IBottomPanleUI extends BasicPanelUI {

	@Override
	public void installUI( JComponent c ) {
		super.installUI(c);
		JPanel bpane = (JPanel) c;
		bpane.setBackground(Constant.MAIN_BG_COLOR_C);
		bpane.setPreferredSize(new Dimension(c.getWidth(), Constant.TOOL_BAR_HEIGHT));
		bpane.setLayout(new FlowLayout(FlowLayout.LEFT, 10, FlowLayout.LEFT));
	}


	@Override
	public void paint( Graphics g, JComponent c ) {
		super.paint(g, c);
		g.setColor(Constant.BORDER_DEFAULT_BG);
		g.drawLine(0, 0, c.getWidth(), 0);
    }

}
